README for toolbox/hardware/GIO_DRVR4.0.5 GIO Device Driver Writing Guide The files in this directory contain information needed to write a device driver for a GIO board. All of the information included in this directory is based on IRIX 4.0.x. Information on how to write a GIO driver for IRIX 5.x will be included in the next version of the "IRIX Device Driver Programming Guide" document. The files in this directory are: gio_4.ps A postscript file of the chapter "Writing Kernel Level GIO Device Drivers for IRIX 4.0.x". This is a 26 page document intended as an addition to the existing "IRIX Device Driver Programming Guide". It contains a description of the specific needs of a GIO device driver and includes segments of source code as examples. The chapter has sections addressing the following topics: * Determining GIO Device Addresses * Including GIO Device Drivers in the Kernel * Writing edtinit() * GIO-Specific System Calls * GIO Interrupt Handler * Programmed I/O (PIO) * DMA Operations * GIO Devices with Hardware Supported Scatter- Gather Capability * DMA on GIO Devices with No Scatter-Gather Capability * Device Driver Example The device driver example is for a mythical (i.e. non- existent) device. Even though the example is for a non-existent device, it does compile cleanly. It can be used as a starting point for creating your own GIO device driver. gio_4.txt This file is an ascii text version of the GIO device driver chapter. gbd.c This is the example source code for the driver documented in the chapter. Consult the chapter for instructions on how to compile this code.
Source
Documentation